import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function findShopCashierChangeShiftListByPage(params) {
	return request({
		url: sysPath +
			'/hx-mart/api/v1/shopCashierChangeShift/cashierChangeShift/findShopCashierChangeShiftListByPage',
		method: 'get',
		params
	})
}

export function findShopCashierChangeShiftDetail(params) {
	return request({
		url: sysPath +
			'/hx-mart/api/v1/shopCashierChangeShift/cashierChangeShift/findShopCashierChangeShiftDetail',
		method: 'get',
		params
	})
}

export function queryOrderDetailShift(params) {
	return request({
		url: sysPath + '/hx-mart/api/v1/shopCashierChangeShift/cashierChangeShift/queryOrderDetailShift',
		method: 'get',
		params
	})
}

export function queryOrderDetailShiftStatistics(params) {
	return request({
		url: sysPath + '/hx-mart/api/v1/shopCashierChangeShift/cashierChangeShift/queryOrderDetailShiftStatistics',
		method: 'get',
		params
	})
}

// 会员账户
export function getMemberAccountList(data) {
	return request({
		url: sysPath + '/hx-mart/api/v1/martUser/account/pageInShop',
		method: 'post',
		data
	})
}

export function addMemberAccount(params) {
	return request({
		url: sysPath + '/hx-mart/api/v1/martUser/account/add',
		method: 'post',
		params
	})
}

export function memberAccountCharge(data) {
	return request({
		url: sysPath + '/hx-mart/api/v1/martUser/account/recharge',
		method: 'post',
		data
	})
}

export function getMemberAccountStatements(data) {
	return request({
		url: sysPath + '/hx-mart/api/v1/martUser/account/order/pageByUser',
		method: 'post',
		data
	})
}